package Java8_24;

public class Teacher {
    private String name;
    private int age;
    private int jiaoling;
    private String sex;
    public void java(){
        System.out.println("熟悉java");
    }
    public void ui(){
        System.out.println("有绘制图像的方法");
    }
    public void net(){
        System.out.println("有教C#的方法");
    }
    public String name(){
        return name;
    }
    public int age(){
        return age;
    }
    public int jiaoling(){
        return jiaoling;
    }
    public String sex(){
        return sex;
    }

    public Teacher(String name,int age,int jiaoling,String sex){
        this.name=name;
        this.age=age;
        this.jiaoling=jiaoling;
        this.sex=sex;

    }
    public void teacher(){
        System.out.println("我是"+name+","+sex+age+"岁，教龄"+jiaoling);

    }
}
